package learningThread.api.priority;

public class TestThreadPriority {

    public static void main(String[] args) {
        System.out.println("MainThread  priority  begin:"+Thread.currentThread().getPriority());

        Thread.currentThread().setPriority(8);   //设置当前线程优先级别
        System.out.println("MainThread  priority  end:"+Thread.currentThread().getPriority());

        Thread1 thread1 = new Thread1();
        thread1.start();

        System.out.println("MainThread  priority  do end");
    }
}
